<%--
	fileName      : menumgmt_branchsel.jsp
	author        : kfzx-yuanjx1
	createDate    : 2010-6-24  上午10:40:28
	lastModifier  : kfzx-yuanjx1
	lastModifyDate: 2010-6-24  上午10:40:28
	description   : 请添加描述
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="ctp-tag" prefix="ctp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>机构选择</title>
		<ctp:include items='borderlayout,panel,toolbar,textfield,button,tabletree,combobox,form,textarea,label,lightlayout,gridlayout,groupbox,message_ex,validator'/>
        <%@ include file="/branch/branchlist.jsp" %>			
		<script type="text/javascript" src="<ctp:out name='fullPath'/>systemgmt/branchExt.js"></script>
		<script type="text/javascript">     
         var temp = 0;        
       $(window).load(function(){	
			 var   branchTreePanel=new ctp.ui.panel({
			        id:'tableTreePanelId',
			  	    title: '机构列表',
			  	    style: 'none',
			     	width: 'auto',
			     	height: 'auto',
			     	renderTo:'body'			   
			    });
			    branchTree=cteateBranchTree(branchTreePanel,setDetailValue); 
		});
		
		function setDetailValue(){      
		                            var retObj = {};
                                    retObj.flag = "do";
                                    retObj.branchTree = (branchTree.getSelectedObj())[0].ctp_ui_tableTree.data;//选择行的数据
                                    if(temp == 1) {parent.ctpMSB.doHandler(retObj,true);}    //调用原页面回调函数传值,默认自动关闭窗口，先执行回调函数后关闭，注意ctpMSB.close()不能随便调       
                                    temp = 1;     		
		}
		
		</script>
		
	</head>
	<body style="margin:0px">
		
	</body>
</html>

<%--
	date        :
	modifyReason:
--%>